package operacoes2;

// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.8571DA81-0E52-BE7A-EF3A-0C54F2513572]
// </editor-fold> 
public class Deposito extends Operacao {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.84761BB3-6F59-B2FB-1359-5F91E7AD1356]
    // </editor-fold> 
    private double quantia;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.AD47C056-0A1F-EB69-0869-68FD3549E4BF]
    // </editor-fold> 
    public Deposito(String numConta, double quantia) {
        super(numConta);
        this.quantia = quantia;
        super.setDescricao("Deposito de " + this.getQuantia() + " € na conta " + super.getNumConta());
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.CB9FCE39-22BE-B58F-218C-0C2535E5133E]
    // </editor-fold> 
    public double getQuantia() {
        return quantia;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.897A1BB5-C21A-596D-4A41-5AEF35922E56]
    // </editor-fold> 
    public void setQuantia(double val) {
        this.quantia = val;
    }

     @Override
    public String toString(){
        return "Deposito de " + this.getQuantia() + " € na conta " + super.getNumConta();
    }
}

